<?php
 if (!defined('IN_CKFINDER')) exit; class CKFinder_Connector_Core_ImagesConfig { private $_maxWidth = 0; private $_maxHeight = 0; private $_quality = 80; function __construct($imagesNode) { if(isset($imagesNode['maxWidth'])) { $_maxWidth = intval($imagesNode['maxWidth']); if($_maxWidth>=0) { $this->_maxWidth = $_maxWidth; } } if(isset($imagesNode['maxHeight'])) { $_maxHeight = intval($imagesNode['maxHeight']); if($_maxHeight>=0) { $this->_maxHeight = $_maxHeight; } } if(isset($imagesNode['quality'])) { $_quality = intval($imagesNode['quality']); if($_quality>0 && $_quality<=100) { $this->_quality = $_quality; } } } public function getMaxWidth() { return $this->_maxWidth; } public function getMaxHeight() { return $this->_maxHeight; } public function getQuality() { return $this->_quality; } } 